// -----------------------------------------------------------------------
//  <copyright file="IdentitySetting.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2024 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2024/12/8 1:41:11</last-date>
// -----------------------------------------------------------------------

using System.ComponentModel;

using DaprPlus.Settings;


namespace Liuliu.Fsb.Services.Identity.Domain.Entities;

/// <summary>
/// 身份认证设置
/// </summary>
[Description("身份认证设置")]
public class IdentitySetting : ISetting
{
    [DisplayName("用户名最小长度")]
    public SettingItem<int> UserNameLengthMin { get; set; } =
        new("RegisterSetting:UserNameLengthMin", 4);

    [DisplayName("用户名最大长度")]
    public SettingItem<int> UserNameLengthMax { get; set; } =
        new("RegisterSetting:UserNameLengthMax", 18);

    [DisplayName("密码最小长度")]
    public SettingItem<int> PasswordRequiredLength { get; set; } =
        new("RegisterSetting:PasswordRequiredLength", 6);
}
